package com.china08.yxyapi.repository.mg.esbag;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.esbag.test.YxyEsbagTeachingTestQuesStu;

public interface YxyEsbagTeachingTestQuesStuRepository extends MongoRepository<YxyEsbagTeachingTestQuesStu, String> {

    List<YxyEsbagTeachingTestQuesStu> findByPackId(String packId);

    YxyEsbagTeachingTestQuesStu findByPackIdAndTeacherIdAndSchoolIdAndQuesGroupIdAndQuesIdAndClassIdAndStudentId(
            String id, String userId, String schoolId, String quesGroupId, String quesId, String classId,
            String studentId);

    List<YxyEsbagTeachingTestQuesStu> findByTeacherIdAndSchoolIdAndPackIdAndQuesGroupIdAndClassId(String userId,
            String schoolId, String id, String quesGroupId, String classId);

}
